import { request } from '@/common/utils/request'

// 产生记录列表
export const recordListApi = (data) => {
	return request({
		url: '/biz/wasteRecords/page',
		method: 'GET',
		data,
	})
}
// 入库记录列表
export const inStorageListApi = (data) => {
	return request({
		url: '/biz/inStorage/page',
		method: 'GET',
		data,
	})
}



// 出库详情、处置详情
export const recordsInfoApi = (data) => {
	return request({
		url: '/record/recordsInfo',
		method: 'GET',
		data,
	})
}

// 产生记录删除
export const delProductRecordApi = (data) => {
	return request({
		url: '/record/wasteRecords/delete',
		method: 'POST',
		data,
	})
}

// 取消入库
export const cancelInStorageApi = (data) => {
	return request({
		url: '/biz/inStorage/cancel',
		method: 'POST',
		data,
	})
}

// 出库记录列表
export const outStorageListApi = (data) => {
	return request({
		url: '/biz/outStorage/page',
		method: 'GET',
		data,
	})
}
// 取消出库
export const outStorageCancel = (data) => {
	return request({
		url: '/biz/outStorage/cancel',
		method: 'POST',
		data,
	})
}
export const outStorageDetail = (data) => {
	return request({
		url: '/biz/outStorage/detail',
		method: 'GET',
		data,
	})
}
// 处置单位选择器
export const disposeUnitSelector = (data) => {
	return request({
		url: '/biz/disposeUnit/selector',
		method: 'GET',
		data,
	})
}

// 获取经办人选择器  orgId
export const operateUserSelector = (data) => {
	return request({
		url: '/biz/user/operateUserSelector',
		method: 'GET',
		data,
	})
}
// 贮存站场选择器
// export const storageFacilitySelector = (data) => {
// 	return request({
// 		url: '/biz/storageFacility/storageFacilitySelector',
// 		method: 'GET',
// 		data,
// 	})
// }

// 处置登记 已登机列表
export const bizDisposalPage = (data) => {
	return request({
		url: '/biz/bizDisposal/page',
		method: 'GET',
		data,
	})
}
// 取消废物处置登记信息
export const bizDisposalCancel = (data) => {
	return request({
		url: '/biz/bizDisposal/cancel',
		method: 'POST',
		data,
	})
}



// 废物过程追踪
export const wasteTracking = (data) => {
	return request({
		url: '/h5/wasteProcessTracking',
		method: 'GET',
		data,
	})
}
